
#ifndef   __COMMAND_PROC_H__
#define   __COMMAND_PROC_H__

#define   CMD_IN_BUFFER_SIZE		67

/* typedef struct  */
/* { */
/* 	unsigned char sender; */
/* 	union */
/* 	{ */
/* 		char *buf; */
/* 		char cmd_str[CMD_IN_BUFFER_SIZE]; */
/* 	}; */
/* }cmd_msg_t; */

typedef struct 
{
	unsigned char sender;
	char cmd_str[CMD_IN_BUFFER_SIZE];
}cmd_msg_t;


extern xQueueHandle cmd_queue;

int cmd_add_cmd (unsigned char sender, const char *frm, ... );/* sender - device was sent the command */

void cmd_task ( void *pvParameters );

#endif
